package cn.kkcxy.blog.core.convert;

import cn.kkcxy.blog.core.dto.client.CheckUserAccountParamsDTO;
import cn.kkcxy.blog.core.entity.sys.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @BelongsProject: kkcxy-blog
 * @BelongsPackage: cn.kkcxy.blog.core.convert
 * @Author: kkcxy
 * @CreateTime: 2024-09-12 01:24
 * @Description: 注册用户参数DTO转换
 * @Version: 1.0
 */
@Mapper
public interface RegisterArgumentsDTOConverter {

    /**
     * 得到自身实例
     */
    RegisterArgumentsDTOConverter INSTANCE = Mappers.getMapper(RegisterArgumentsDTOConverter.class);

    /**
     * 将注册账户的参数转换为系统用户的实例对象
     */
    SysUser convertAccountParamsTOSysUser(CheckUserAccountParamsDTO dto);
}
